﻿#ifndef ADDWIDGET_H
#define ADDWIDGET_H

#include <QWidget>

namespace Ui {
class AddWidget;
}

class AddWidget : public QWidget
{
    Q_OBJECT

public:
    explicit AddWidget(int i,QWidget *parent = nullptr);

    void initAttr();
    void initFun();

    void addPerson();
    void cancel();

    ~AddWidget();

signals:
    bool hasDestory();//界面结束信号


private:
    Ui::AddWidget *ui;
    int index;//0为电话,1为电话卡

    virtual void keyPressEvent(QKeyEvent *ev);
};

#endif // ADDWIDGET_H
